

import org.apache.rocketmq.spring.annotation.MessageModel;
import org.apache.rocketmq.spring.annotation.RocketMQMessageListener;
import org.apache.rocketmq.spring.annotation.SelectorType;
import org.apache.rocketmq.spring.core.RocketMQListener;
import org.springframework.stereotype.Component;

@Component

@RocketMQMessageListener(

        topic = "01-boot",

        consumerGroup = "wolfcode-consumer"
        ,messageModel = MessageModel.BROADCASTING
        ,selectorType = SelectorType.TAG,

        selectorExpression = "age > 16"

)
public class cumser implements RocketMQListener<String>{


    @Override
    public void onMessage(String s) {
        System.out.println("消费消息2"+s);
    }




}
